package com.jse.dao;

public class Pager extends org.nutz.dao.pager.Pager {

	private static final long serialVersionUID = 1L;

	public Pager(int pageNumber, int pageSize) {
		setPageNumber(pageNumber);
		setPageSize(pageSize);
	}

	public Pager() {
		super();
	}

	@Override
	public String toString() {
		return String.format("{\"pageNumber\":%d,\"pageSize\":%d,\"recordCount\":%d,\"pageCount\":%d}",
				(getPageNumber()-1),getPageSize(),getRecordCount(),getPageCount());
	}

	
}
